<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">

    <!-- Always force latest IE rendering engine -->
    <meta http-equiv="X-UA-Compatible" content="IE=edge">

    <!-- Mobile Specific Meta -->
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <meta name="description" content="DESCRIPTION">
    <meta name="keywords" content="KEYWORDS">
    <meta name="author" content="AUTHOR NAME">

    <!-- TITLE -->
    <title>Python评分</title>

    <!-- FAVICON -->
    <link href="../static/img/favicon.ico" rel="icon">

    <!-- BOOTSTRAP CSS -->
    <link rel="stylesheet" href="../static/css/bootstrap.min.css">

    <!-- FONT-AWESOME -->
    <link rel="stylesheet" href="../static/css/font-awesome-4.7.0/css/font-awesome.min.css">

    <!-- MAGNIFIC POPUP CORE CSS -->
    <link href="../static/css/magnific-popup.css" rel="stylesheet">

    <!-- OWL CAROUSEL -->
    <link href="../static/css/owl.carousel.min.css" rel="stylesheet">
    <link href="../static/css/owl.theme.default.min.css" rel="stylesheet">

    <!--Style CSS file-->
    <link rel=" stylesheet" href="../static/css/style.css">

</head>

<body>

    <!-- ====== Preloader ======  -->
    <div id="loader-wrapper">
        <div id="loader"></div>
        <div class="loader-section section-left"></div>
        <div class="loader-section section-right"></div>
    </div>
    <!-- ======End Preloader ======  -->

    <!-- ======START NAVGITION ======  -->
    <nav class="navbar navbar-expand-lg">
        <!-- logo -->
        <a class="navbar-brand" href="#home">
            <img src="../static/img/logo.png" alt="header-Logo" class="logo"></a>

        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarText">
            <span class="icon-bar"><i class="fa fa-bars fa-2x"></i></span>
        </button>
        <!--End of Resposive Toggle icon-->

        <div class="collapse navbar-collapse" id="navbarText">
            <!--Main menu navigation list-->
            <ul class="navbar-nav ml-auto line">
                <li class="nav-item">
                    <a class="nav-link" href="/index">首页</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="/movie">电影</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link active" href="/score">评分</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="/portfolio">词云</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="/team">团队</a>
                </li>
            </ul>
            <!--End of Main menu navigation list-->
        </div>
        <!--End of resposive collapse class-->
    </nav>
    <!-- ====== END NAVGITION ======  -->

    <!-- ====== START TEAM======  -->
    <section class="team padding" id="team" data-scroll-index="2">
        <div class="container">

            <!-- START TEAM SECTION TITLE -->
            <div class="text-center">
                <h2 class="heading-primary mb-5">豆瓣电影Top250评分分布</h2>
                <!-- 为 ECharts 准备一个定义了宽高的 DOM -->
                <div id="main" style="width: 100%;height:400px;"></div>
            </div>
            <!-- END TEAM SECTION TITLE -->


        </div>
    </section>

    <section class="team padding" id="team" data-scroll-index="2">
        <div class="container">

            <!-- START TEAM SECTION TITLE -->
            <div class="text-center">
                <!-- 为 ECharts 准备一个定义了宽高的 DOM -->

                <div id="container" style="width: 100%;height:800px;"></div>
            </div>
            <!-- END TEAM SECTION TITLE -->


        </div>
    </section>

    <section class="team padding" id="team" data-scroll-index="2">
        <div class="container">

            <!-- START TEAM SECTION TITLE -->
            <div class="text-center">
                <!-- 为 ECharts 准备一个定义了宽高的 DOM -->

                <div id="year_container" style="width: 100%;height:800px;"></div>
            </div>
            <!-- END TEAM SECTION TITLE -->


        </div>
    </section>
    <!-- ====== END TEAM ======  -->



    <!-- ====== START FOOTER ======  -->
    <section class="footer">
        <div class="container">
            <div class="row">
                <!-- START MULTIMAX -->
                <div class="col-lg-4 col-md-6 mb-sm-5 mb-3">
                    <h3 class="heading-tertiary mb-3">Multimax</h3>
                    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Id quos ipsa, soluta eum itaque nobis
                        quas sunt suscipit aliquid.</p>
                </div>
                <!-- END MULTIMAX -->

                <!-- START QUICK LINKS -->
                <div class="col-lg-2 col-md-6 mb-sm-5 mb-3">
                    <h3 class="heading-tertiary mb-3">Quick Links</h3>
                    <ul>
                        <li><i class="fa fa-angle-double-right"></i>
                            <a href="#0">Blog</a>
                        </li>
                        <li><i class="fa fa-angle-double-right"></i>
                            <a href="#0">About Us</a>
                        </li>
                        <li><i class="fa fa-angle-double-right"></i>
                            <a href="#0">Our story</a>
                        </li>
                        <li><i class="fa fa-angle-double-right"></i>
                            <a href="#0">Forum</a>
                        </li>
                    </ul>
                </div>
                <!-- END QUICK LINKS -->

                <!-- START SUPPORT -->
                <div class="col-lg-2 col-md-6 mb-sm-5 mb-3">
                    <h3 class="heading-tertiary mb-3">Support</h3>
                    <ul>
                        <li><i class="fa fa-angle-double-right"></i>
                            <a href="#0">FAQ'S</a>
                        </li>
                        <li><i class="fa fa-angle-double-right"></i>
                            <a href="#0">Privacy</a>
                        </li>
                        <li><i class="fa fa-angle-double-right"></i>
                            <a href="#0">Policy</a>
                        </li>
                        <li><i class="fa fa-angle-double-right"></i>
                            <a href="#0">Support</a>
                        </li>
                        <li><i class="fa fa-angle-double-right"></i>
                            <a href="#0">Documetation</a>
                        </li>
                    </ul>
                </div>
                <!-- END SUPPORT -->

                <!-- START NEWSLETTER -->
                <div class="col-lg-4 col-md-6 mb-sm-5 mb-3">
                    <h3 class="heading-tertiary mb-3">Subscribe to our Newsletter</h3>
                    <p>Lorem ipsum dolor sit amet consectetur adipisicing elit.Id nobis
                        quas sunt suscipit aliquid.</p>
                    <form class="form mt-3">
                        <div class="form-check mb-3"> <label class="form-check-label"> <input type="checkbox"
                                    name="checkbox">
                                <small>Yes, I would like to receive communications by email.
                                </small></label>
                        </div>
                        <div class="input-group">
                            <input name="email" type="email" class="form-control" placeholder="Enter your email"
                                required>
                            <button class="btn" type="submit"><i class="fa fa-paper-plane"></i></button>
                        </div>
                    </form>
                </div>
                <!-- END NEWSLETTER -->

                <hr class="clearfix w-100 color-dark">

                <!-- START FOOTER BOTTOM -->
                <div class="offset-md-3 col-md-6 offset-md-3">

                    <!-- START SOCIAL ICONS -->
                    <div class="social-links">
                        <ul>
                            <li><a href="#0"><i class="fa fa-facebook fa-fw"></i></a></li>
                            <li><a href="#0"><i class="fa fa-twitter fa-fw"></i></a></li>
                            <li><a href="#0"><i class="fa fa-linkedin fa-fw"></i></a></li>
                            <li><a href="#0"><i class="fa fa-pinterest-p fa-fw"></i></a></li>
                            <li><a href="#0"><i class="fa fa-instagram fa-fw"></i></a></li>
                        </ul>
                    </div>
                    <!-- END SOCIAL ICONS -->

                    <!-- END SOCIAL ICONS -->

                    <!-- START RIGHTS -->
                    <div class="copyright">
                        <h5> &copy; The Garden of Eden 2024 | All Rights Reserved. </h5>
                    </div>
                    <!-- END RIGHTS -->
                </div>
                <!-- END FOOTER BOTTOM -->
            </div>
        </div>
    </section>
    <!-- ====== END FOOTER ======  -->

    <!-- ====== JS ======  -->
    <!--jquery-3.3.1 js-->
    <script src="../static/js/jquery-3.3.1.min.js"></script>

    <!-- popper js -->
    <script src="../static/js/popper.min.js"></script>

    <!-- bootstrap js -->
    <script src="../static/js/bootstrap.min.js"></script>

    <!-- scrollIt js -->
    <script src="../static/js/scrollIt.min.js"></script>

    <!-- countTo js -->
    <script src="../static/js/jquery.countTo.js"></script>

    <!-- filter js -->
    <script src="../static/js/jquery.filterizr.min.js"></script>

    <!-- waypoints js -->
    <script src="../static/js/waypoints.min.js"></script>

    <!-- Magnific Popup core JS -->
    <script src="../static/js/jquery.magnific-popup.min.js"></script>

    <!-- owl carousel js -->
    <script src="../static/js/owl.carousel.min.js"></script>

    <!-- validator js -->
    <script src="../static/js/validator.js"></script>

    <!-- coustom js -->
    <script src="../static/js/main.js"></script>
    <script src="../static/js/echarts.min.js"></script>
    <script type="text/javascript">
        // 基于准备好的dom，初始化echarts实例
        var dom = document.getElementById('main');
        var myChart = echarts.init(dom, null, {
            renderer: 'canvas',
            useDirtyRect: false
        });
        var app = {};

        var option;

        option = {
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            xAxis: {
                type: 'category',
                data: {{ scores | tojson() }}
  },
        yAxis: {
            type: 'value'
        },
        grid: {
            left: '3%',
                right: '4%',
                    bottom: '3%',
                        containLabel: true
        },
        series: [
            {
                data: {{ nums }},
            type: 'bar',
            showBackground: true,
            backgroundStyle: {
                color: 'rgba(180, 180, 180, 0.2)'
            }
    }
        ]
};

        if (option && typeof option === 'object') {
            myChart.setOption(option);
        }

        window.addEventListener('resize', myChart.resize);

        // 国家统计
        var dom = document.getElementById('container');
        var myChart1 = echarts.init(dom, null, {
            renderer: 'canvas',
            useDirtyRect: false
        });
        var app = {};

        var option;

        option = {
            title: {
                text: 'Top电影国家统计',
                subtext: '截止2023-12-22',
                left: 'center'
            },
            tooltip: {
                trigger: 'item'
            },
            legend: {
                top: '5%',
                left: 'center'
            },
            series: [
                {
                    name: 'Access From',
                    type: 'pie',
                    radius: ['40%', '70%'],
                    avoidLabelOverlap: false,
                    itemStyle: {
                        borderRadius: 10,
                        borderColor: '#fff',
                        borderWidth: 2
                    },
                    label: {
                        show: false,
                        position: 'center'
                    },
                    emphasis: {
                        label: {
                            show: true,
                            fontSize: 40,
                            fontWeight: 'bold'
                        }
                    },
                    labelLine: {
                        show: false
                    },
                    data: {{ nationDatas | tojson() }}
                }
            ]
        };

        if (option && typeof option === 'object') {
            myChart1.setOption(option);
        }

        window.addEventListener('resize', myChart1.resize);
        // year_container
        var dom = document.getElementById('year_container');
        var myChart3 = echarts.init(dom, null, {
            renderer: 'canvas',
            useDirtyRect: false
        });
        var app = {};

        var option;

        option = {
            title: {
                text: 'Top电影年份统计',
                subtext: '截止2023-12-22',
                left: 'center'
            },
            tooltip: {
                trigger: 'item'
            },
            legend: {
                orient: 'vertical',
                left: 'left'
            },
            series: [
                {
                    name: 'Access From',
                    type: 'pie',
                    radius: '80%',
                    data: {{ yearData | tojson() }},
        emphasis: {
            itemStyle: {
                shadowBlur: 10,
                    shadowOffsetX: 0,
                        shadowColor: 'rgba(0, 0, 0, 0.5)'
            }
        }
                }
            ]
        };

        if (option && typeof option === 'object') {
            myChart3.setOption(option);
        }

        window.addEventListener('resize', myChart3.resize);
    </script>

</body>

</html>